@model ProjectCodeS.Models.TicketItem

@{
    ViewBag.Title = "Delete";
}

<h2>Delete</h2>

<h3>Are you sure you want to delete this?</h3>
<fieldset>
    <legend>TicketItem</legend>

    <div class="display-label">Name</div>
    <div class="display-field">@Model.Name</div>

    <div class="display-label">Price</div>
    <div class="display-field">@String.Format("{0:F}", Model.Price)</div>

    <div class="display-label">Ticket</div>
    <div class="display-field">@(Model.Ticket == null ? "None" : Model.Ticket.Name)</div>

    <div class="display-label">Item</div>
    <div class="display-field">@(Model.Item == null ? "None" : Model.Item.Name)</div>

    <div class="display-label">Colors</div>
    <div class="display-field">@(Model.Colors == null ? "None" : Model.Colors.Count.ToString())</div>

    <div class="display-label">Textures</div>
    <div class="display-field">@(Model.Textures == null ? "None" : Model.Textures.Count.ToString())</div>
</fieldset>
@using (Html.BeginForm()) {
    <p>
        <input type="submit" value="Delete" /> |
        @Html.ActionLink("Back to List", "Index")
    </p>
}


